package com.yc.rh.biz.impl;

import java.util.List;

import com.yc.rh.biz.INewartInfoBiz;
import com.yc.rh.dao.INewartInfoDao;
import com.yc.rh.entities.NewartInfo;

public class NewartInfoBizImpl implements INewartInfoBiz{
	private INewartInfoDao newartInfoDao;
		
	public void setNewartInfoDao(INewartInfoDao newartInfoDao) {
		this.newartInfoDao = newartInfoDao;
	}

	@Override
	public int addNewart(NewartInfo ni) {
		return newartInfoDao.addNewart(ni);
	}

	@Override
	public List<NewartInfo> find(Integer pageNo, Integer pageSize) {
		return newartInfoDao.find(pageNo, pageSize);
	}

	@Override
	public int delNews(String naids) {
		return newartInfoDao.delNews(naids);
	}

	@Override
	public int getTotal() {
		return newartInfoDao.getTotal();
	}

	@Override
	public int updatePic(NewartInfo ni) {
		return newartInfoDao.updatePic(ni);
	}

	@Override
	public int getNaid(String naname) {
		return newartInfoDao.getNaid(naname);
	}

	@Override
	public String findNaContentImgByNaid(int naid) {
		return newartInfoDao.findNaContentImgByNaid(naid);
	}

	@Override
	public List<NewartInfo> findNewartInfoByDate(NewartInfo ni, Integer pageNo, Integer pageSize) {
		return newartInfoDao.findNewartInfoByDate(ni, pageNo, pageSize);
	}

	@Override
	public int getTotal(NewartInfo ni) {
		return newartInfoDao.getTotal(ni);
	}
}
